<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge"/>
	<link rel="stylesheet" type="text/css" href="../dist/theme/gray.css"/>
	<link rel="stylesheet" type="text/css" href="css/main.css"/>
	<title>jquery-tab demo - save to hash</title>
</head>
<body>
<div class="region">
	<h1>Structural Rules</h1>
	<p>Title elements become tab labels.</p>
	<p>Any rest contents until next title element become tab panel contents.</p>

	<h1>Save to Hash</h1>
	<p>Save current active tab item information into URL hash, so that it could be kept after refresh.</p>

	<h1 data-tab-item-name="javascript">JavaScript</h1>
	<code>
		<pre>
		$('.region').tab({
			statusHashTemplate: 'tab='
		});
		</pre>
	</code>
</div>

<script type="text/javascript" src="js/jquery-1.7.2.js"></script>
<script type="text/javascript" src="../dist/jquery-tab.js"></script>
<script type="text/javascript">
	$('.region').tab({
		statusHashTemplate: 'tab='
	});
</script>
</body>
</html>
